package com.fudan.dto.entities;

import java.io.Serializable;

import com.fudan.tool.IdHelper;


public class User implements Serializable{
	private Integer userId;
	private String username;
	private String password;
	private String role;
	
	public static final String TEACHER = "teacher";
	public static final String STUDENT = "student";

	public User() {
		super();
	}
	public User(String username, String password, String role) {
		this.username = username;
		this.password = password;
		this.role = role;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	@Override
	public String toString() {
		return "User [userId=" + userId + ", username=" + username + ", password=" + password + ", role=" + role + "]";
	}
	
	


}
